{include file="public/header" /}




<div class="page">
	<div class="fixed-bar">
		<div class="item-title">
			<div class="subject">
				<h3>数据字典</h3>
				<h5></h5>
			</div>
			{include file="public/admin_items" /}
		</div>
	</div>
		<form class="sc-search-form" method="get" action="{:url('dictionary/index')}">
			<div class="btn_group">
			分类:
			<select class="w-140" name="dict_type">
				{foreach name="dict_types" key="key" item="item"}
					<option value='{$key}' {eq name="Think.get.dict_type" value="$key"}selected{/eq}>
					{$item}
					</option>
				{/foreach}
			</select>
			</div>
			<div class="btn_group m-lr-5">
			<input type="text" class="form-control w-120" name="keyword" value="{:input('request.keyword/s','')}" placeholder="请输入 关键词">
			</div>
			<div class="btn_group">
				<input type="submit" class="btn" value="搜索" />
			</div>
		</form>
		<form action="{:url('dictionary/listorder')}" class="js-ajax-form" method="post">
			<div class="table-actions btn_group">
				<button class="btn btn-primary btn-sm js-ajax-submit" type="submit">排序</button>
			</div>
		<table class="sc-default-table">
			<thead>
				<tr>
					<th width="100">字典类型</th>
					<th width="120">key</th>
					<th width="200">value</th>
					<th width="60">排序</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				{foreach name="list" item="vo"}
				<tr>
					<td>{$vo.dict_type|dict_convert="dict_type",###}</td>
					<td>{$vo.key}</td>
					<td>{$vo.value}</td>
					<td>
						<input name="list_orders[{$vo.id}]" class="input-order" type="text"
							   value="{$vo.list_order}">
					</td>
					<td>
						<a href='{:url("dictionary/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
						<a href='{:url("dictionary/delete",array("id"=>$vo["id"]))}'>删除</a>
					</td>
				</tr>
				{/foreach}
			</tbody>
		</table>
		</form>
		<div class="pagination">{$page}</div>
	</div>

</body>
</html>